package com.zlc.common.core.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlc.common.core.sys.model.entity.MayanSysNotification;
import com.zlc.common.core.sys.model.vo.MayanSysNotificationVo;
import com.zlc.common.model.sys.NotificationRequest;
import com.zlc.common.model.user.UserPageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zl
 * @date 2025-09-08 
 */
@Mapper
public interface MayanSysNotificationMapper extends BaseMapper<MayanSysNotification> {


    List<MayanSysNotificationVo> queryList(NotificationRequest request);

    /**
     * 获取最早未读记录
     */
    MayanSysNotificationVo findNoShow(@Param(value = "userAccount") String userAccount);

    /**
     * 批量删除
     */
    void remove(@Param(value = "ids") List<String> ids,@Param(value = "userAccount")String userAccount);

}
